package ae.pcfc.etks.online.common.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UserAnnouncements entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_ETKS_USER_ANNOUNCEMENTS", schema = "ETKS_ONLINE_DBA")
@SequenceGenerator(name = "SQ_ETKS_U_ANNOUNCEMENTS", sequenceName = "SQ_ETKS_U_ANNOUNCEMENTS", initialValue = 1, allocationSize = 1)
public class UserAnnouncements implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Long UAnnouncementId;
	private String UAnnouncement;
	private Date UAnnouncementCreateDate;
	private String clientRefNo;
	private String UEmail;

	// Constructors

	/** default constructor */
	public UserAnnouncements() {
	}

	/** minimal constructor */
	public UserAnnouncements(String UAnnouncement,
			Date UAnnouncementCreateDate) {
		this.UAnnouncement = UAnnouncement;
		this.UAnnouncementCreateDate = UAnnouncementCreateDate;
	}

	/** full constructor */
	public UserAnnouncements(String UAnnouncement,
			Date UAnnouncementCreateDate, String clientRefNo, String UEmail) {
		this.UAnnouncement = UAnnouncement;
		this.UAnnouncementCreateDate = UAnnouncementCreateDate;
		this.clientRefNo = clientRefNo;
		this.UEmail = UEmail;
	}

	// Property accessors
	@Id
	@GeneratedValue( strategy = GenerationType.SEQUENCE, generator="SQ_ETKS_U_ANNOUNCEMENTS")
	@Column(name = "U_ANNOUNCEMENT_ID", nullable = false, scale = 0)
	public Long getUAnnouncementId() {
		return this.UAnnouncementId;
	}

	public void setUAnnouncementId(Long UAnnouncementId) {
		this.UAnnouncementId = UAnnouncementId;
	}

	@Column(name = "U_ANNOUNCEMENT", nullable = false, length = 100)
	public String getUAnnouncement() {
		return this.UAnnouncement;
	}

	public void setUAnnouncement(String UAnnouncement) {
		this.UAnnouncement = UAnnouncement;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "U_ANNOUNCEMENT_CREATE_DATE", nullable = false, length = 7)
	public Date getUAnnouncementCreateDate() {
		return this.UAnnouncementCreateDate;
	}

	public void setUAnnouncementCreateDate(Date UAnnouncementCreateDate) {
		this.UAnnouncementCreateDate = UAnnouncementCreateDate;
	}

	@Column(name = "CLIENT_REF_NO", length = 50)
	public String getClientRefNo() {
		return this.clientRefNo;
	}

	public void setClientRefNo(String clientRefNo) {
		this.clientRefNo = clientRefNo;
	}

	@Column(name = "U_EMAIL", length = 50)
	public String getUEmail() {
		return this.UEmail;
	}

	public void setUEmail(String UEmail) {
		this.UEmail = UEmail;
	}

}